import request from '@/utils/request'

export function getReferrers() {
  return request({
    url: 'user/referrer/list',
    method: 'get'
  })
}


export function getRootUsers() {
  return request({
    url: 'user/agent/roots',
    method: 'get'
  })
}

export function getSubUsers(id) {
  return request({
    url: 'user/sub/list/' + id,
    method: 'get'
  })
}
